package com.itheima.test4;

import java.io.FileInputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("student.txt");

        StringBuffer sum=new StringBuffer("");
        int b;
        while ((b=fis.read())!=-1){
            sum.append((char)b);
        }
        fis.close();
        System.out.println(sum);
    }
}
